from random import randint
ist=[randint(40,100)for _ in range(10)]
avg=sum(ist)/len(ist)
if avg>=90:
    s="优秀"
elif avg>=75:
    s="良好"
elif avg>=60:
    s ="不及格"
print("等级为:{:.1f}{}".format(avg,s))